//
//  HostRecommendCell.m
//  NewPro
//
//  Created by RYX on 2019/5/27.
//  Copyright © 2019 何荧红. All rights reserved.
//

#import "HostRecommendCell.h"

@implementation HostRecommendCell

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor clearColor];
        [self addIm];

    }
    return self;
}

- (void)addIm {
    
    UIImageView *im = [[UIImageView alloc]init];
    im.layer.cornerRadius = 5;
    im.layer.masksToBounds = YES;
//    im.contentMode =  UIViewContentModeScaleToFill;
//    im.clipsToBounds  = YES;
    [self addSubview:im];
    _im = im;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    _im.frame = self.bounds;
}

@end
